package com.youle.youleservice.util;

import android.content.Context;
import android.content.SharedPreferences;

public class PrefrenceUtil {

    public static void setForbiddent(Context context,boolean isForb){
        SharedPreferences.Editor editor = context.getSharedPreferences("isForbiddent",Context.MODE_PRIVATE).edit();
        editor.putBoolean("bool",isForb);
        editor.commit();
    }

    public static boolean isForbiddent(Context context){
        SharedPreferences sp = context.getSharedPreferences("isForbiddent",Context.MODE_PRIVATE);
        return sp.getBoolean("bool",false);
    }

}
